package io.geekidea.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.system.entity.ResourceType;
import io.geekidea.boot.system.query.ResourceTypeQuery;
import io.geekidea.boot.system.vo.ResourceTypeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 资源类型 Mapper 接口
 */
@Mapper
public interface ResourceTypeMapper extends BaseMapper<ResourceType> {

    /**
     * 获取资源类型详情
     *
     * @param id
     * @return
     */
    ResourceTypeVo getResourceTypeById(Long id);

    /**
     * 获取资源类型列表
     *
     * @param query
     * @return
     */
    List<ResourceTypeVo> getResourceTypeList(ResourceTypeQuery query);
}
